<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Admin extends CI_Controller
{
	function __construct()
	{
		parent::__construct();		
		if (!$this->tank_auth->is_logged_in()) redirect('auth/login');				
		
		//load models
		//$this->load->model('Default_db');
	}

	function index()
	{	
		redirect('admin/employee-settings');
	}
	function employee_settings()
	{
		//default
		$data['ptitle'] = "Employee Settings";				
		$data['username'] = $this->tank_auth->get_username();
		$data['module'] = 'admin';
		$data['active_header'] = 'admin';
		//end default
		$data['content'] = $this->load->view('index',$data,true);		
		$this->load->view('default_view',$data);
	}
	
	function company_settings()
	{
		//default
		$data['ptitle'] = "Company Settings";				
		$data['username'] = $this->tank_auth->get_username();
		$data['module'] = 'admin';
		$data['active_header'] = 'admin';
		//end default
		$data['content'] = $this->load->view('company_settings',$data,true);		
		$this->load->view('default_view',$data);
	}
	
	function js() {
        $this->load->view('js/script.js');
    }
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */